--重锤反击
local zhongchuifanji = fk.CreateSkill {
    name = "mcdh_zhongchuifanji"
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

zhongchuifanji:addEffect(fk.CardUseFinished,{
    can_trigger = function(self, event, target, player, data)
        return target~=player and player:hasSkill(self) and data.card.type ~= Card.TypeBasic and not target:isKongcheng()
                and player:usedSkillTimes(self.name, Player.HistoryTurn) == 0 and target:inMyAttackRange(player) and player:inMyAttackRange(target)
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        if not target:isKongcheng() then
            room:askForDiscard(target,1,1,false,self.name,false)
        end
    end
})

Fk:loadTranslationTable {
    ["mcdh_zhongchuifanji"] = "重锤反击",
    [":mcdh_zhongchuifanji"] = "每回合限一次，其他角色使用非基本牌后，若你与其相互在对方的攻击范围内，你可以令其弃置一张手牌。",
    ["#zhongchuifanji-give"] = "重锤反击: 交给 %src 一张装备牌,否则弃置两张牌"
}


return zhongchuifanji